﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AlbumList.aspx.cs" Inherits="Jy123.Web.Manage.Album.AlbumList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link href="../css/custom/jquery.ui.css" rel="stylesheet" type="text/css" />
    <link href="../css/main.css" rel="stylesheet" type="text/css" />

    <script src="../js/jquery.js" type="text/javascript"></script>

    <script src="../js/jquery.ui.js" type="text/javascript"></script>

    <script src="../js/main.js" type="text/javascript"></script>

    <script language="javascript" type="text/javascript">
    $(function() {
        $("#chkall").click(function() {
            if (this.checked) {
                $('input[type=checkbox][name=albumchkedid]').attr('checked', true);
            }
            else {
                $('input[type=checkbox][name=albumchkedid]').attr('checked', false);
            }
        })});
    </script>

    <title>无标题页</title>
</head>
<body>
    <form id="form1" runat="server">
    <h4>
        <a href="#"><span>相册管理</span></a></h4>
    <div class="register">
        <h5>
            根据姓名搜索相册</h5>
        <ul class="bb">
            <li>
                <asp:TextBox ID="Key" runat="server" Width="200" CssClass="text"></asp:TextBox></li>
            <li>
                <asp:Button ID="btnSearch" runat="server" OnClick="btnSearch_Click" CssClass="button"
                    Text="搜 索" /></li>
        </ul>
    </div>
    <asp:Repeater runat="server" ID="RptData">
        <HeaderTemplate>
            <table class="tblist">
                <tr>
                    <th>
                        编号
                    </th>
                    <th>
                        相册名称
                    </th>
                    <th>
                        创建人
                    </th>
                    <th>
                        照片张数
                    </th>
                    <th>
                        创建时间
                    </th>
                    <th>
                        最后上传时间
                    </th>
                    <th>
                        <label for="chkall">
                            操作</label>
                        <input id="chkall" type="checkbox" />
                    </th>
                </tr>
        </HeaderTemplate>
        <ItemTemplate>
            <tr id="<%#Eval("ID") %>">
                <td>
                    <%# Container.ItemIndex + 1 + pagesize * (cpage - 1)%>
                </td>
                <td>
                    <a href="/Album/PhotoFriend.aspx?AlbumID=<%# DataBinder.Eval(Container.DataItem, "ID")%>"
                        target="_blank">
                        <%# DataBinder.Eval(Container.DataItem, "Title")%>
                    </a>
                </td>
                <td>
                    <a href="/home/index.aspx?UserID=<%# DataBinder.Eval(Container.DataItem, "FUser")%>" target="_blank">
                        <%# DataBinder.Eval(Container.DataItem, "UserName")%></a>
                </td>
                <td>
                    <%# DataBinder.Eval(Container.DataItem, "ImagesCount")%>
                </td>
                <td>
                    <%# DataBinder.Eval(Container.DataItem, "CreateTime")%>
                </td>
                <td>
                    <%# DataBinder.Eval(Container.DataItem, "LastUploadTime")%>
                </td>
                <td>
                    <input type="checkbox" name="albumchkedid" value="<%# DataBinder.Eval(Container.DataItem, "ID")%>" />
                </td>
            </tr>
        </ItemTemplate>
        <FooterTemplate>
            <tr>
                <td colspan="7" class="tr">
                    <% =string.Format("当前{0}/{1},共{2}条记录", cpage, count[1], count[0]) + PageString((int)count[1], cpage, "AlbumList.aspx?page=$num$")%>
                </td>
            </tr>
            </table>
        </FooterTemplate>
    </asp:Repeater>
    <div class="register">
        <ul class="bb">
            <li>
                <asp:Button ID="btnDel" runat="server" OnClick="btnDel_Click" Text="删除" CssClass="button cred"
                    Enabled="False" />
            </li>
        </ul>
    </div>
    </form>
</body>
</html>
